﻿@page "/SysUserGroup/DataRange"

<Text>@LanguageService[$"{CurrencyConstant.Page}.{CurrencyConstant.SelectAccessibleMenu}"].Replace("{DataSource.Entity.Name}",LanguageService[$"{CurrencyConstant.EntitysName}.{DataSource.Entity.Name}"])</Text>
<Tree
      Style="margin-top:20px"
      TItem="SysUserGroupView"
      BlockNode
      ShowIcon DataSource="UserGroups"
      TitleExpression="x => x.DataItem.Entity.Name"
      ChildrenExpression="x => x.DataItem.Children"
      IsLeafExpression="x => x.DataItem.Children?.Count == 0"
      KeyExpression="x => x.DataItem.Id.ToString()">
    <TitleIconTemplate Context="node">
        <Checkbox @bind-Checked="node.DataItem.IsPermission"></Checkbox>
    </TitleIconTemplate>
</Tree>